package com.wbb.controller;

import com.wbb.model.TbSeller;
import com.wbb.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/seller")
public class SellerController {
    @Autowired
    private SellerService sellerService;

    @PostMapping("/queryByUsername")
    public TbSeller queryByUsername(@RequestParam String username) {
        return sellerService.queryByUsername(username);
    }
}
